package jike.demo11.pingxue.controller;

import jike.demo11.pingxue.service.VirtualWalletService;

import java.math.BigDecimal;

/**
 * 虚拟钱包
 * @author oyz
 */
public class VirtualWalletController {

        // 通过构造函数或者 IOC 框架注入
        private VirtualWalletService virtualWalletService;

        // 查询余额
        public BigDecimal getBalance(Long walletId) { return null; }
        // 出账
        public void debit(Long walletId, BigDecimal amount) {  }
        // 入账
        public void credit(Long walletId, BigDecimal amount) {  }
        public void transfer(Long fromWalletId, Long toWalletId, BigDecimal amount){}
}
